# Template file for 'eiwd'
pkgname=eiwd
version=2.22
revision=1
wrksrc="iwd-${version}"
build_style=gnu-configure
configure_args="--disable-systemd-service --disable-dbus"
hostmakedepends="python3-docutils pkgconf"
makedepends="readline-devel"
checkdepends="python3"
short_desc="Internet Wireless Daemon without dbus"
maintainer="MarcoAPC <marcoaureliopc@gmail.com>"
license="LGPL-2.1-or-later"
homepage="https://github.com/illiliti/eiwd"
distfiles="https://github.com/illiliti/eiwd/releases/download/${version}-1/iwd-${version}.tar.xz"
checksum=fb571a80cc2af57cda130ec6b07fc919bfb4bbfb57fd7096ef480233be785664
conflicts="iwd"
make_dirs="/var/lib/iwd 0600 root root
 /etc/iwd 755 root root"
# tests depend on kernel features
make_check=extended

post_install() {
	vsv iwd
	vbin ${FILESDIR}/iwd_passphrase
	vinstall ${FILESDIR}/main.conf 0644 etc/iwd/
}
